﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;
using System.Windows.Forms;

using System.Windows.Documents;
using System.Drawing;

namespace CrazyClient
{
   

    [DataContract]
    public class DisplayInfo
    {
        public DisplayInfo()
        {
        }
        public DisplayInfo(Screen s)
        {
            this.BitsPerPixel = s.BitsPerPixel;
            this.Bounds = s.Bounds;
            this.DeviceName = s.DeviceName;
            this.Primary = s.Primary;
            this.WorkingArea = s.WorkingArea;
        }
        private int _bitsPerPixel;
        [DataMember]
        public int BitsPerPixel
        {
            get { return _bitsPerPixel; }
            set { _bitsPerPixel = value; }
        }
        private Rectangle _bounds;
        [DataMember]
        public Rectangle Bounds
        {
            get { return _bounds; }
            set { _bounds = value; }
        }
        private string _deviceName;
        [DataMember]
        public string DeviceName
        {
            get { return _deviceName; }
            set { _deviceName = value; }
        }
        private bool _primary;
        [DataMember]
        public bool Primary
        {
            get { return _primary; }
            set { _primary = value; }
        }
        private Rectangle _WorkingArea;
        [DataMember]
        public Rectangle WorkingArea
        {
            get { return _WorkingArea; }
            set { _WorkingArea = value; }
        }
    }
}

